# -*- coding: utf-8 -*-

# ‘name’ 的1月份到3月份的工资在图上体现
import matplotlib.pyplot as plt
x1=[1,2,3] #month
name=raw_input('what\'s your name:')
wage1=raw_input('How much is your wage in JAN?')
wage2=raw_input('How much is your wage in Feb')
wage3=raw_input('How much is your wage in MAR?')
y1=[wage1,wage2,wage3]

plt.plot(x1,y1,'g^')
plt.axis([1,6,0,7000])
plt.xlabel('month')
plt.ylabel('wage')
plt.title(name+'\'s Wages sheet')  #标题
plt.legend('best',numpoints=3)  #best 最佳位置(具体位置可以换参数) numpoints 里面g^个数  
plt.show()
